<?php // In case you would like to remove it this page.
require(DIR_WS_INCLUDES . 'header.php'); ?>
<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>

    <td width="100%" valign="top"><?php echo $a[form] ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="componentheading" valign="top"><?php echo $a[heading] ?></td>
            
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="smallText"><br><?php echo $a[intro] ?></td>
      </tr>

<tr><td class="smallText"><?php echo $a[required] ?></td></tr>

      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>

      <tr>
        <td><?php echo $a[messagestack]; ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>

      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
        
<?php 
global $mosUser;
if (!$mosUser['validated']) { 
 if (!isset($_GET['guest']) && !isset($_POST['guest'])) {
//new registrations only part
?>

      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="componentheading"><b><?php echo $a[usernameinfo]; ?></b></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td class="main"><?php echo $a[username]; ?></td>
                <td class="main"><?php echo $a[username_input] ?></td>
              </tr>

              <tr>
                <td class="main"><?php echo $a[password]; ?></td>
                <td class="main"><?php echo $a[password_input]; ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo $a[password_conf]; ?></td>
                <td class="main"><?php echo $a[password_conf_input]; ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>

<?php 
}else{
 ?>
 <tr>
   <td><?php echo tep_draw_hidden_field('guest', 'guest'); ?></td>
 </tr>
 <?php
 }
}
 ?>
          <tr>
            <td class="componentheading"><b><?php echo $a[personalinfo]; ?></b></td>
           <td></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td class="main"><?php echo $a[firstname]; ?></td>
                <td class="main"><?php echo $a[firstname_input]; ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo $a[lastname] ?></td>
                <td class="main"><?php echo $a[lastname_input] ?></td>
              </tr>
<?php
  if (ACCOUNT_DOB == 'true') {
?>
              <tr>
                <td class="main"><?php echo $a[dateofbirth] ?></td>
                <td class="main"><?php echo $a[dateofbirth_input]?></td>
              </tr>
<?php
  }
?>
              <tr>
                <td class="main"><?php echo $a[emailadd] ?></td>
                <td class="main"><?php echo $a[emailadd_input]; ?></td>
              </tr>
<?php
  if (ACCOUNT_GENDER == 'true') {
?>
              <tr>
                <td class="main"><?php echo $a[gender]; ?></td>
                <td class="main"><?php echo $a[gender_input]; ?></td>
              </tr>
<?php
  }
?>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php
  if (ACCOUNT_COMPANY == 'true') {
?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="componentheading"><b><?php echo $a[companyinfo]; ?></b></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td class="main"><?php echo $a[company] ?></td>
                <td class="main"><?php echo $a[company_input] ?></td>
              </tr>
				<tr>
                <td class="main"><?php echo $a[taxno] ?></td>
                <td class="main"><?php echo $a[taxno_input] ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php
  }
?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="componentheading"><b><?php echo $a[addressinfo] ?></b></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td class="main"><?php echo $a[address] ?></td>
                <td class="main"><?php echo $a[address_input] ?></td>
              </tr>
<?php
  if (ACCOUNT_SUBURB == 'true') {
?>
              <tr>
                <td class="main"><?php echo $a[suburb] ?></td>
                <td class="main"><?php echo $a[suburb_input] ?></td>
              </tr>
<?php
  }
?>
              <tr>
                <td class="main"><?php echo $a[city] ?></td>
                <td class="main"><?php echo $a[city_input] ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo $a[country] ?></td>
                <td class="main"><?php echo $a[country_input] ?></td>
              </tr>
              
<?php
  if (ACCOUNT_STATE == 'true') {
?>
              <tr>
                <td class="main"><?php echo $a[state] ?></td>
                <td class="main"><div id="states"><?php echo $a[state_input] ?><div></td>
              </tr>
<?php
  }
?>
              <tr>
                <td class="main"><?php echo $a[postal] ?></td>
                <td class="main"><?php echo $a[postal_input] ?></td>
              </tr>

              
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="componentheading"><b><?php echo $a[contactinfo] ?></b></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td class="main"><?php echo $a[telephone] ?></td>
                <td class="main"><?php echo $a[telepone_input] ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo $a[fax] ?></td>
                <td class="main"><?php echo $a[fax_input] ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      
      <?php echo tep_get_extra_fields($customer_id,$languages_id);?>
      
      <tr>
        <td class="componentheading"><b><?php echo $a[other] ?></b></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td class="main"><?php echo $a[newsletter] ?></td>
                <td class="main"><?php echo $a[newsletter_input] ?></td>
              </tr>

            </table></td>
          </tr>
        </table></td>
      </tr>




      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td><?php echo $a[button_back]; ?>
</td>
                <td class="main" align="right"><?php echo $a[button_submit] ?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></form></td>

  </tr>
</table>
